package com.heima.article.controller;


import com.heima.article.entity.ApAuthor;
import com.heima.common.dto.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import com.heima.article.service.IApAuthorService;
import java.util.List;
import java.util.Map;

import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/api/v1/author")
@Api(tags = "APP文章作者信息表接口")
@CrossOrigin
public class ApAuthorController{

    @Autowired
    private IApAuthorService apAuthorService;

    @PostMapping(name="新增文章作者")
    public ResponseResult<ApAuthor> saveApAuthor(@RequestBody ApAuthor apAuthor){
        return apAuthorService.saveApAuthor(apAuthor);
    }


}
